package cn.edu.scau.cmi.dengshixin.factory.abstractFactory;

import cn.edu.scau.cmi.dengshixin.factory.brand.Tianbang;
import cn.edu.scau.cmi.dengshixin.factory.domain.Meat;
import cn.edu.scau.cmi.dengshixin.factory.domain.TianbangPork;
import cn.edu.scau.cmi.dengshixin.factory.domain.TianbangChicken;
import cn.edu.scau.cmi.dengshixin.factory.domain.TianbangBeaf;

public class TianbangMeatFactory extends Tianbang implements AbstractFactory {

	@Override
	public Meat produce(String name) {
		// TODO Auto-generated method stub
		Meat meat = null;
		switch(name) {
		case "猪肉":
			meat = new TianbangPork();
			break;
		case "鸡肉":
			meat = new TianbangChicken();
			break;
		case "牛肉":
			meat = new TianbangBeaf();
			break;
		}
		return meat;
	}

}
